package com.qfedu.demo;

import com.qfedu.dao.AccountDao;
import com.qfedu.dao.impl.AccountDaoImpl;
import com.qfedu.pojo.Account;
import org.junit.jupiter.api.Test;

import java.math.BigDecimal;

public class AccountDaoTest {

    AccountDao accountDao = new AccountDaoImpl();
    @Test
    public void query(){
        Account account = accountDao.queryAccountByPhone("15122223333");
        Account account1 = accountDao.queryAccountByIdcode("444444444444444444");

        System.out.println(account);
        System.out.println(account1);
    }
    @Test
    public void setAccount() {
        Account account2 = new Account("1388888888","55555555555555","五五开","333333",new BigDecimal(10));
        System.out.println(accountDao.saveAccount(account2));
    }
}
